
<input id="jquery-numberinput_<?php echo $this->params->name; ?>" type="text" name="<?php echo $this->params->name; ?>" /> <div id="jquery-numberinput_<?php echo $this->params->name; ?>_error_message" class="jquery-error_message"></div>

<script type="text/javascript">

	JQ("#jquery-numberinput_<?php echo $this->params->name; ?>").keypress(function (e)
	{
		if (e.which != 13 && e.which != 8 && e.which !=0 && (e.which < 48 || e.which > 57))
		{
			JQ("#jquery-numberinput_<?php echo $this->params->name; ?>_error_message").html("<?php echo $this->params->error_message; ?>").show().fadeOut(1500);
			return false;
		}
	});
	
</script>
